package com.example.springbootblog.common.pojo.request;


import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class RegisterInfoParam {
    @NotNull(message = "注册用户名不能为空")
    private String userName;
    @NotNull(message = "注册密码不能为空")
    @Length(max = 18 , message = "注册密码超过最大长度18")
    private String password;
}
